package com.tuweiya.study.springmvc001.eventBus.observer;

import com.google.common.eventbus.Subscribe;

/**
 * @Author: Mr_tu
 * @Date: Create in 14:37 2018/6/7
 * @Description: 观察者
 */
public class DataObserver2 {

    /**
     * post() 不提供自动装箱功能，
     * @param integer
     */
    @Subscribe
    public void func(Integer integer) throws InterruptedException {
        Thread.sleep(1000);
        System.out.println("Integer msg:" + integer);
    }


}
